<?php
/**
 * Minhlog Domain_Entity 文章分类类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Category.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_Category extends Domain_Entity_Abstract
{
    protected $_categoryId;
    protected $_parentId;
    protected $_categoryName;
    protected $_categoryDesc;
    protected $_displayOrder;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setCategoryId($primaryId);
    }

    public function getPrimaryId ()
    {
        return $this->getCategoryId();
    }

    public function setCategoryId ($categoryId)
    {
        $this->_categoryId = (int) $categoryId;
        return $this;
    }

    public function getCategoryId ()
    {
        return $this->_categoryId;
    }

    public function setParentId ($parentId)
    {
        $this->_parentId = (int) $parentId;
        return $this;
    }

    public function getParentId ()
    {
        return $this->_parentId;
    }

    public function setCategoryName ($categoryName)
    {
        $this->_categoryName = (string) $categoryName;
        return $this;
    }

    public function getCategoryName ()
    {
        return $this->_categoryName;
    }

    public function setCategoryDesc ($categoryDesc)
    {
        $this->_categoryDesc = (string) $categoryDesc;
        return $this;
    }

    public function getCategoryDesc ()
    {
        return $this->_categoryDesc;
    }

    public function setDisplayOrder ($displayOrder)
    {
        $this->_displayOrder = (int) $displayOrder;
        return $this;
    }

    public function getDisplayOrder ()
    {
        return $this->_displayOrder;
    } // set/get方法定义结束
}